]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Hide overview on using hotkey
authorNishal Kulkarni <nishalkulkarni@gmail.com>
Sat, 8 May 2021 10:28:06 +0000 (15:58 +0530)
committerMarge Bot <marge-bot@gnome.org>
Tue, 11 May 2021 12:50:01 +0000 (12:50 +0000)
Change behavior on pressing Super+Number in Activities/Overview mode
so that the overview mode is hidden and application can be used.

This makes it consistent with clicking icon in the dash.

Closes: #4212
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1839>

js/ui/windowManager.js

index 34c54b61e11c3cc1677f59c12e0fe45c1d06e6df..5a3327b1bcfacaf9d81db5cd951430d33f1c8238 100644 (file)
@@ -1714,8 +1714,10 @@ var WindowManager = class {
         let [, , , target] = binding.get_name().split('-');
         let apps = AppFavorites.getAppFavorites().getFavorites();
         let app = apps[target - 1];
-        if (app)
+        if (app) {
+            Main.overview.hide();
             app.activate();
+        }
     }
 
     _toggleAppMenu() {